import { add_new_type_staticNode } from "./cla_add_new_type_staticNode";
import { add_new_type_eventBind } from "./cla_add_new_type_eventBind";
import { spacename_add_new_type } from "../DataDefine/sourceData";
import type { add_new_type_props } from "./cla_add_new_type_props";
import { pack_all_child_node_from_to } from "../../../../global_comps/Func/pack_all_child_node_from_to";
import { listenEvent_mana } from "@global/index";

const add_new_type_dataManaTag = "add_new_type_dataMana";

export class add_new_type_dataMana extends add_new_type_staticNode {
  get [Symbol.toStringTag]() {
    return add_new_type_dataManaTag;
  }

  constructor(props: add_new_type_props) {
    super(props);
  }

  /**
   * 事件 绑定 this
   */
  eventBind = new add_new_type_eventBind();

  /**
   * 事件 监听管理
   */
  eventM = new listenEvent_mana(spacename_add_new_type);

  /**
   * 战术 类型选择器
   */
  async show_type_select() {
    pack_all_child_node_from_to(this.dom_new_type_container, this.dom_dialog);
    this.show_view();
  }
}
